package com.yuyou.train.admin.api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.train.admin.service.ICommDataConfigService;
import com.yuyou.train.service.api.admin.entity.CommDataConfig;
import com.yuyou.train.service.api.admin.service.CommDataConfigAPI;

@RestController
public class CommDataConfigAPIImpl implements CommDataConfigAPI{

	@Autowired
	private ICommDataConfigService commDataConfigService;

	@Override
	public List<CommDataConfig> findUseByCategory(String category) {
		List<CommDataConfig> list=commDataConfigService.findUseByCategory(category);		
		return list;
	}

	@Override
	public CommDataConfig selectUseByCode(String code) {
		return commDataConfigService.selectUseByCode(code);
	}
	
	@Override
	public CommDataConfig selectById(String id) {
		return commDataConfigService.selectByPrimaryKey(id);
	}


	




}
